package com.guanglan.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.guanglan.domain.SysPermission;

public interface SysPermissionMapper {
	
    int deleteByPrimaryKey(Long id);

    int insert(SysPermission record);

    int insertSelective(SysPermission record);

    SysPermission selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysPermission record);

    int updateByPrimaryKey(SysPermission record);
    
    List<SysPermission> selectByPermissionId(@Param("list") List<Long> list);
    
    List<SysPermission> getSysPermissions(Map<String,Object> params);
    
    Integer getSysPermissionsCount(Map<String,Object> params);
    
    List<SysPermission> getAllParentPerm();
    
    void deleteChildNode(@Param("id") long pid);
}